<?php
namespace TwinPeaks\Core;

const SYS_EXCEPTION_CLASS = 1;
const COMMON_EXCEPTION_CLASS = 2;

abstract class CBaseException extends \Exception
{
	use TAppInjector;
	
	/**
	 * @var integer
	 */
	private $class;
	
	/**
	 * @return integer
	 */
	final function getClass()
	{
		return $this->class;
	}
	
	/**
	 * @return void
	 */
	final protected function setClass($class)
	{
		$this->class = $class;
	}
	
	/**
	 * @return void 
	 */
	function _throw()
	{
		throw $this;
	}	
}
